﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace ZhangZhao.Web.H_UserGatherThirdPhoto
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int Id=(Convert.ToInt32(strid));
					ShowInfo(Id);
				}
			}
		}
		
	private void ShowInfo(int Id)
	{
		ZhangZhao.BLL.H_UserGatherThirdPhoto bll=new ZhangZhao.BLL.H_UserGatherThirdPhoto();
		ZhangZhao.Model.H_UserGatherThirdPhoto model=bll.GetModel(Id);
		this.lblId.Text=model.Id.ToString();
		this.lblUserName.Text=model.UserName;
		this.lblThirdUserName.Text=model.ThirdUserName;
		this.lblThirdPhotoThumb.Text=model.ThirdPhotoThumb;
		this.lblThirdPhotoLarge.Text=model.ThirdPhotoLarge;
		this.lblIsLike.Text=model.IsLike?"是":"否";
		this.lblCreatedTime.Text=model.CreatedTime.ToString();
		this.lblViewCount.Text=model.ViewCount.ToString();

	}


    }
}
